<?php
header("Content-type:text/html;charset=utf-8");
	$phoneNumber=$_GET["phoneNumber"];
	$pwd=$_GET["pwd"];
	// echo $phoneNumber." ".$pwd;
	$conn=mysql_connect("localhost","root","root");
	if($conn){
		// echo "注册成功";
		mysql_select_db("class2project");
		}else{
        die("Could not connect:" . mysql_error());
    }
		$result=mysql_query("select * from userphone where userName='$phoneNumber' and pwd='$pwd'",$conn);
	if(mysql_num_rows($result) == 1){
		echo "1";
	}else{
		echo "0";
	}
	
	
	mysql_close($conn);
?>